<?php 
$sql = "SELECT
			 
			  d.title,
			  d.meta_description,
			  d.description,
			  d.meta_key
		  FROM
			  pages AS c,
			  page_description AS d
		  WHERE
			c.page_id = d.page_id
			AND
			d.lang_id = '".$_SESSION['lang_id']."'
			AND
			c.sef_url = 'home' 
			
		  ";
$result = query($sql);
$row = mysql_fetch_object($result);


head(sth($row->title),sth($row->meta_description),sth($row->meta_key));


?>
	
<div id="homewrap">
    
    <div id="hometext">
     	<?=stripslashes($row->description)?>
    </div>
    
	<div id="icons">
		<a href="<?=HTML_BASE?><?=$_SESSION['lang']?>/about" class="icon about"><span><?=__ABOUT?></span></a>
		<a href="<?=HTML_BASE?><?=$_SESSION['lang']?>/wedding" class="icon wedding"><span><?=__WEDDING_PHOTO?></span></a>
		<a href="<?=HTML_BASE?><?=$_SESSION['lang']?>/news" class="icon news"><span><?=__NEWS?></span></a>
		<a href="<?=HTML_BASE?><?=$_SESSION['lang']?>/commerce" class="icon commerce"><span><?=__COMMERCE_PHOTO?></span></a>
		<a href="<?=HTML_BASE?><?=$_SESSION['lang']?>/family" class="icon family"><span><?=__FAMILI_PHOTO?></span></a>
		<a href="<?=HTML_BASE?><?=$_SESSION['lang']?>/partners" class="icon partners"><span><?=__PARTNERS?></span></a>
		<a href="<?=HTML_BASE?><?=$_SESSION['lang']?>/prices" class="icon price"><span><?=__PRICE_PHOTO?></span></a>
		<a href="<?=HTML_BASE?><?=$_SESSION['lang']?>/contacts" class="icon contacts"><span><?=__CONTACTS?></span></a>
        <a href="<?=HTML_BASE?>shop/<?=$_SESSION['lang']?>/index.html" class="icon shop"><span><?=__SHOP?></span></a>
		
        
	</div>
    
    <div id="lang">
		<?php if($_SESSION['lang'] == 'bg') {?>
        	<a class="active" href="<?=HTML_BASE?>bg/"><span>Български</span></a>
            <a href="<?=HTML_BASE?>en/" ><span>English</span></a>	  
		<?php }else{?>
            
            <a  href="<?=HTML_BASE?>bg/"><span>Български</span></a>
            <a class="active" href="<?=HTML_BASE?>en/" ><span>English</span></a>	   
		<?php }?>
     </div>   
</div>

    <ul class="cb-slideshow">
        <li><span></span></li>
        <li><span></span></li>
        <li><span></span></li>
    </ul>
    
    
<?php

foot();
?>